.tal-r {
  text-align: right;
}

.wrapper--msgFlowItem {
  text-align: left;
  &.tal-l {
    text-align: left;
  }
  &.tal-c {
    text-align: center;
  }
  &.tal-r {
    text-align: right;
  }
}


.wrapper--msgflow {
  line-height: 1.5;
  padding: 10px 20px;
  background: #e8e8e8;

  * {
    margin: 0;
    padding: 0;
  }
}

.msgFlowItem--dialog__wrapper {
  display: inline-block;
  max-width: 70%;
  margin: 10px 0;
  overflow: hidden;
  text-align: left;

  & > .msgFlowItem__head {
    float: left;
    border-radius: 15px;
  }
  & > .content--msgFlowItem {
    margin-left: 40px;
  }
  .text--msgFlowItem {
    min-height: 30px;
    padding: 4px 6px;
    position: relative;
    font-size: 14px;
    background: #fff;
    border-radius: 2px;

    &::before {
      content: '';
      position: absolute;
      top: 10px;
      left: -8px;
      border: 4px solid transparent;
      border-right-color: #fff;
    }
  }
}

.msgFlowItem--dialog__wrapper--right-mode {
  & > .msgFlowItem__head {
    float: right;
  }
  & > .content--msgFlowItem {
    margin-right: 40px;
  }
  .text--msgFlowItem::before {
    display: none;
  }
  .text--msgFlowItem::after {
    content: '';
    position: absolute;
    top: 10px;
    right: -8px;
    border: 4px solid transparent;
    border-left-color: #fff;
  }
}

.system-msg--msgFlowItem {
  display: inline;
  padding: 2px 6px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}
